package com.rst.model;

import java.sql.Time;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@Entity
@Table(name="t_class_timing")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class ClassTiming {
	
	public static final int ACTIVE = 1;
	public static final int INACTIVE = 0;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name="f_class_timimng_id")
	private Long classTimingId;	

	@Column(name="f_is_break")
	private Boolean isBreak;
	
	@Column(name="f_name")
	private String name;
		
	@Column(name="f_start_time")
	private Time startTime;

	
	@Column(name="f_end_time")
	private Time endTime;

	
	@Column(name="f_status")
	private Integer status;
	
	@Column(name="f_class_id")
	private Long classId;
		
	@Column(name="f_section_id")
	private Long sectionId;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="f_section_id", nullable=false, insertable=false, updatable=false)
	private Section section;

	public Long getClassTimingId() {
		return classTimingId;
	}

	public void setClassTimingId(Long classTimingId) {
		this.classTimingId = classTimingId;
	}

	public Boolean getIsBreak() {
		return isBreak;
	}

	public void setIsBreak(Boolean isBreak) {
		this.isBreak = isBreak;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Time getStartTime() {
		return startTime;
	}

	public void setStartTime(Time startTime) {
		this.startTime = startTime;
	}

	public Time getEndTime() {
		return endTime;
	}

	public void setEndTime(Time endTime) {
		this.endTime = endTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getClassId() {
		return classId;
	}

	public void setClassId(Long classId) {
		this.classId = classId;
	}

	public Long getSectionId() {
		return sectionId;
	}

	public void setSectionId(Long sectionId) {
		this.sectionId = sectionId;
	}

	public Section getSection() {
		return section;
	}

	public void setSection(Section section) {
		this.section = section;
	}

	

}
